package com.tg.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;


@Entity
public class DeviceReboot implements Parcelable {
    @Id
    public long id;
    public  String uuid;//设备UUID
    public long  createdAt;
    public DeviceReboot(){}


    protected DeviceReboot(Parcel in) {
        id = in.readLong();
        uuid = in.readString();
        createdAt = in.readLong();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeString(uuid);
        dest.writeLong(createdAt);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<DeviceReboot> CREATOR = new Creator<DeviceReboot>() {
        @Override
        public DeviceReboot createFromParcel(Parcel in) {
            return new DeviceReboot(in);
        }

        @Override
        public DeviceReboot[] newArray(int size) {
            return new DeviceReboot[size];
        }
    };
}
